package com.report.dto.request;

import com.report.valid.NotBlankPassWordPattern;
import com.report.valid.NotBlankPhonePattern;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author summer
 * @version 1.0
 * @date 2024/7/19 14:24
 */
@Data
public class SendPhoneReq implements Serializable {

    @NotBlankPhonePattern(regexp = "^1[3-9]\\d{9}$")
    private String phone;

    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlankPassWordPattern(regexp = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$")
    private String password;
}
